<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2beta1/dlp.proto

namespace Google\Cloud\Dlp\V2beta1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Configuration to suppress records whose suppression conditions evaluate to
 * true.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.RecordSuppression</code>
 */
class RecordSuppression extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.RecordCondition condition = 1;</code>
     */
    private $condition = null;

    public function __construct() {
        \GPBMetadata\Google\Privacy\Dlp\V2Beta1\Dlp::initOnce();
        parent::__construct();
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.RecordCondition condition = 1;</code>
     * @return \Google\Cloud\Dlp\V2beta1\RecordCondition
     */
    public function getCondition()
    {
        return $this->condition;
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.RecordCondition condition = 1;</code>
     * @param \Google\Cloud\Dlp\V2beta1\RecordCondition $var
     * @return $this
     */
    public function setCondition($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\RecordCondition::class);
        $this->condition = $var;

        return $this;
    }

}

